Laravel get only the Ids of an eloquent arrays

80

Laravel get only the Ids of an eloquent arrays -

$post_ids = Post::pluck('id')->toArray();

Comments

Submit
0 Comments